﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DPLParser.DPLILCode;
using Irony.Parsing;

namespace DPLParser.DPLNodeParser.DPLScriptTreeNodeMappers.Implementations
{
    public class DPLOperatorExtractor : AbstractDPLScriptItemExtractor<AbstractDPLOperator>
    {
        public DPLOperatorExtractor(ParseTreeNode originalNode)
            : base(originalNode)
        {
            
        }
        
        public override AbstractDPLOperator GetItem()
        {
            if (OriginalTreeNode.GetNodes(".=").Count > 0)
                return new EqualsDPLOperator();

            return null;
        }
    }
}
